const fetchRoleList = (size) => {
    let list = [];
    for (let index = 0; index < size; index++) {
      list = list.concat({
        "id|+1": index + 1,
        name: "@cname",
        package: "@cname",
        designerName: "@cname",
        url: "@url()",
        username: "@cname",
        createTime: "@datetime",
      });
    }
    return list;
  };
  
  export default [
    {
      url: "/api/designer/resourse/list",
      method: "get",
      response: (options) => {
        const urlParams = new URLSearchParams(options.url.split("?")[1] || "");
        const list = fetchRoleList(urlParams.get("pageSize"));
        console.log(list, urlParams, "urlParams");
        return {
          code: 200,
          total: 12,
          data: list,
        };
      },
    },
  ];
  